<template>
  <div class="crumbs_box">
    <div class="title">
      <span class="name">{{name}}</span>
      <span class="sp1">口腔健康评估报告</span>
      <i class="el-icon-arrow-right"></i>
    </div>
    <div class="sub_title">
      <span>··········</span>
      <span>ORAL HEALTH EVALUATION REPORT</span>
    </div>
  </div>
</template>
<script>
export default {
  name: "BreadCrumbs",
  props: {
    name: {
      type: String,
      default: "",
    },
  },
  data() {
    return {};
  },
};
</script>
<style lang="scss" scoped>
// 面包屑
.crumbs_box {
  position: relative;
  margin-top: 40px;

  .title {
    position: relative;
    height: 40px;
    line-height: 40px;
    background: #004385;
    color: #fff;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    // justify-content: space-between;
    width: 40%;
    font-size: 12px;
    .name{
      margin-right:10px;
    }
    i {
      position:absolute;
      right:0px;
      font-size: 24px;
    }
  }

  .title:after {
    position: absolute;
    display: block;
    content: "";
    width: 0;
    height: 0;
    border-top: 30px solid transparent;
    border-bottom: 40px solid #004385;
    border-right: 30px solid transparent;
    right: -29px;
    top: -30px;
    z-index: 2;
  }

  .sub_title {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40%;
    font-size: 12px;
    padding-left: 30px;
    line-height: 32px;
    color: #004385;
  }
}
</style>